import {NgModule} from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';

import {AppRoutingModule} from './app-routing.module';
import {AppComponent} from './app.component';
import {HttpClientModule} from '@angular/common/http';
import {Myc01Component} from './myc01/myc01.component';
import {HeroesComponent} from './heroes/heroes.component';
import {FormsModule} from "@angular/forms";
import {HeroDetailComponent} from './hero-detail/hero-detail.component';
import {MessagesComponent} from './messages/messages.component';
import {DashboardComponent} from './dashboard/dashboard.component';
import {HeroSearchComponent} from './hero-search/hero-search.component';
import {Myc01buyComponent} from './myc01-buy/myc01buy.component';
import {NgforComponent} from './myc02-ngfor/ngfor.component';
import {Myc03NgifComponent} from './myc03-ngif/myc03-ngif.component';
import {Myc04NgifComponent} from './myc04-ngif/myc04-ngif.component';
import {Myc05NgifComponent} from './myc05-ngif/myc05-ngif.component';
import {Myc06StyleComponent} from './myc06-style/myc06-style.component';
import {Myc07SwitchComponent} from './myc07-switch/myc07-switch.component';
import {Myc08NgmodelComponent} from './myc08-ngmodel/myc08-ngmodel.component';
import {XuyaoqiangdiaoDirective} from './xuyaoqiangdiao.directive';
import {Myc01TodolistComponent} from './myc01-todolist/myc01-todolist.component';
import {Myc02EmplistComponent} from './myc02-emplist/myc02-emplist.component';
import {SexPipe} from './sex.pipe';
import {SalaryPipe} from './salary.pipe';
import {ZzmmPipe} from './zzmm.pipe';
import {Myc03ProductComponent} from './myc03-product/myc03-product.component';
import {Myc04HttpfetchshopComponent} from './myc04-httpfetchshop/myc04-httpfetchshop.component';
import {ConfigComponent} from './config/config.component';
import {Myc04Component} from "./myc04/myc04.component";
import {Myc05Component} from "./myc05/myc05.component";
import {Myc01UserComponent} from './myc01-user/myc01-user.component';
import {Myc02UserLoginComponent} from './myc02-user-login/myc02-user-login.component';
import {Myc03UserRegisterComponent} from './myc03-user-register/myc03-user-register.component';
// DevUI部分组件依赖angular动画，需要引入animations模块
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
import {DevUIModule} from 'ng-devui';
import {Myc04ProductlistComponent} from './myc04-productlist/myc04-productlist.component';
import {I18nModule} from "ng-devui/i18n";
import {DataTableModule} from 'ng-devui/data-table';
import { ProductIndexComponent } from './product-index/product-index.component';
import { ProductListComponent } from './product-list/product-list.component';
import { ProductDetailComponent } from './product-detail/product-detail.component';
import { ProductUserCenterComponent } from './product-user-center/product-user-center.component';
import {RouterModule} from "@angular/router";
import { ProductNotFoundComponent } from './product-not-found/product-not-found.component';
import { MyIndexComponent } from './my-index/my-index.component';
import { MyUserCenterComponent } from './my-user-center/my-user-center.component';
import { MyNotFoundComponent } from './my-not-found/my-not-found.component';
import { MyInfoComponent } from './my-info/my-info.component';
import { AvatarComponent } from './avatar/avatar.component';
import { SecurityComponent } from './security/security.component';

// import {Myc01ParentBlogComponent} from './myc01-parent-blog/myc01-parent-blog.component';
// import {Myc02Child1ModifyComponent} from './myc02-child1-modify/myc02-child1-modify.component';
// import {Myc03Child2PhotoComponent} from './myc03-child2-photo/myc03-child2-photo.component';




@NgModule({
  declarations: [
    AppComponent,
    HeroesComponent,
    HeroDetailComponent,
    MessagesComponent,
    DashboardComponent,
    HeroSearchComponent,
    Myc01Component,
    Myc01buyComponent,
    Myc01TodolistComponent,
    NgforComponent,
    Myc02EmplistComponent,
    Myc03NgifComponent,
    Myc03ProductComponent,
    Myc04HttpfetchshopComponent,
    Myc04NgifComponent,
    Myc04Component,
    Myc05NgifComponent,
    Myc05Component,
    Myc06StyleComponent,
    Myc07SwitchComponent,
    Myc08NgmodelComponent,
    XuyaoqiangdiaoDirective,
    SexPipe,
    SalaryPipe,
    ZzmmPipe,
    ConfigComponent,
    Myc01UserComponent,
    Myc02UserLoginComponent,
    Myc03UserRegisterComponent,
    Myc04ProductlistComponent,
    ProductIndexComponent,
    ProductListComponent,
    ProductDetailComponent,
    ProductUserCenterComponent,
    ProductNotFoundComponent,
    MyIndexComponent,
    MyUserCenterComponent,
    MyNotFoundComponent,
    MyInfoComponent,
    AvatarComponent,
    SecurityComponent,
    // Myc01ParentBlogComponent,
    // Myc02Child1ModifyComponent,
    // Myc03Child2PhotoComponent,
  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    FormsModule,
    HttpClientModule,
    BrowserAnimationsModule,
    DevUIModule,
    I18nModule,
    DataTableModule,
// The HttpClientInMemoryWebApiModule module intercepts HTTP requests
// and returns simulated server responses.
// Remove it when a real server is ready to receive requests.

    // HttpClientInMemoryWebApiModule.forRoot(
    //   InMemoryDataService, {dataEncapsulation: false}
    // )
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule {
}
